package edu.hubu.talentmanagementsystem.model.ext;


import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;
import edu.hubu.talentmanagementsystem.model.Model;

import java.io.Serializable;

/**
 * <p>
 * 日志表
 * </p>
 *
 * @author moonlan
 * @since 2021-03-13
 */
@TableName("blog")
public class Blog extends Model<Blog> implements Serializable {


    /**
     * 日志ID
     */
    @TableId(value = "blog_id", type = IdType.AUTO)
    private Integer blogId;

    /**
     * 日志文字内容
     */
    @TableField("blog_text_content")
    private String blogTextContent;

    @TableField("blog_publisher_id")
    private Integer blogPublisherId;

    /**
     * 日志发表时间
     */
    @TableField("blog_publish_time")
    private LocalDateTime blogPublishTime;

    /**
     * 日志点赞数
     */
    @TableField("blog_agree_num")
    private Integer blogAgreeNum;

    public Integer getBlogId() {
        return blogId;
    }

    public Blog setBlogId(Integer blogId) {
        this.blogId = blogId;
        return this;
    }

    public String getBlogTextContent() {
        return blogTextContent;
    }

    public Blog setBlogTextContent(String blogTextContent) {
        this.blogTextContent = blogTextContent;
        return this;
    }

    public Integer getBlogPublisherId() {
        return blogPublisherId;
    }

    public Blog setBlogPublisherId(Integer blogPublisherId) {
        this.blogPublisherId = blogPublisherId;
        return this;
    }

    public LocalDateTime getBlogPublishTime() {
        return blogPublishTime;
    }

    public Blog setBlogPublishTime(LocalDateTime blogPublishTime) {
        this.blogPublishTime = blogPublishTime;
        return this;
    }

    public Integer getBlogAgreeNum() {
        return blogAgreeNum;
    }

    public Blog setBlogAgreeNum(Integer blogAgreeNum) {
        this.blogAgreeNum = blogAgreeNum;
        return this;
    }

    @Override
    public String toString() {
        return "Blog{" +
                "blogId=" + blogId +
                ", blogTextContent=" + blogTextContent +
                ", blogPublisherId=" + blogPublisherId +
                ", blogPublishTime=" + blogPublishTime +
                ", blogAgreeNum=" + blogAgreeNum +
                "}";
    }
}
